//
//  XTCommonTools.swift
//  Weibo(Swift)
//
//  Created by 肖霆 on 16/5/13.
//  Copyright © 2016年 肖霆. All rights reserved.
//

import UIKit


//切换根视图的通知的名称
let SwitchRootVCNotification = "SwitchRootVCNotification"

//点击表情按钮的通知名
let didSelectedEmoticonBtnNotification = "didSelectedEmoticonBtnNotification"

//点击删除按钮的通知名
let didSelectedDeleteEmoticonBtnNotification = "didSelectedDeleteEmoticonBtnNotification"
//屏幕宽度
let ScreenWidth = UIScreen.mainScreen().bounds.width
//屏幕高度
let ScreenHeight = UIScreen.mainScreen().bounds.height

//RGB颜色创建
func RGB(red:CGFloat,green:CGFloat,blue:CGFloat)->UIColor{
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}

//产生一个随机颜色
func RandomColor()->UIColor{
    let red = random()%256
    let green = random()%256
    let blue = random()%256
    
    return RGB(CGFloat(red)/255, green: CGFloat(green)/255, blue: CGFloat(blue)/255)

}
